import Vue from "vue";
import Router from "vue-router";

import Login from './views/login/login.vue'
// 布局组件
import Layout from '@/components/Layout.vue'




Vue.use(Router);
export default new Router({
  mode:'history',
  routes: [
    {
      // 登录页
      path: '/login',
      name: 'login', //路由名称
      component: Login
    },
    {
      // 基础布局
      path: '/',
      name: 'layout', //路由名称
      component: Layout, //组件对象
    },
  ],
});
